package com.itheima.demo.Demo06;

public class RunableCS {
    public static void main(String[] args) {
        System.out.println("start");

        ////////////////////////////////////
        Thread rr=new Thread(new Runable());
        rr.start();
        for (int i = 0; i <=20 ; i++) {
            System.out.println("娶媳妇"+" "+i);
            try {
                Thread.sleep(500);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        System.out.println("end");
    }
}
